package Pieces;

public class ReverseL extends Piece {
    public static int PROBABILITY = 15; //percent chance of this piece being selected

    private BlockType[][] revEllArrayUpright = {
			{BlockType.NONE, BlockType.BLUE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.BLUE, BlockType.NONE, BlockType.NONE},
			{BlockType.BLUE, BlockType.BLUE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    private BlockType[][] revEllArrayRight = {
			{BlockType.BLUE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.BLUE, BlockType.BLUE, BlockType.BLUE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    private BlockType[][] revEllArrayDown = {
			{BlockType.NONE, BlockType.BLUE, BlockType.BLUE, BlockType.NONE},
			{BlockType.NONE, BlockType.BLUE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.BLUE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    private BlockType[][] revEllArrayLeft = {
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.BLUE, BlockType.BLUE, BlockType.BLUE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.BLUE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    public ReverseL() {
		super();
	}

	@Override
	public BlockType[][] getCurrentBlockArray() {
		switch(currentState) {
		case DEFAULT:
			return revEllArrayLeft;
		case FIRST:
			return revEllArrayUpright;
		case SECOND:
			return revEllArrayRight;
		default:
			return revEllArrayDown;
	}
	}

}
